#include "TerrainGlobal.h"

CTerrainGlobal* mTerrain;

void CTerrainManage::Inital()
{
	mTerrain = new CTerrainGlobal();
	mTerrain->Inital();
}

void CTerrainManage::CreateTerrain(int worldsize /* = 5000 */, int size /* = 257 */)
{
	mTerrain->CreateTerrain(worldsize,size);
}
void CTerrainManage::setEditState(TerrainEditState _state)
{
	mTerrain->setEditState(_state);
}
void CTerrainManage::capture()
{
	mTerrain->capture();
}

void CTerrainManage::injectMouseMove(int _absx, int _absy, int _absz, int _width, int _height)
{
}
void CTerrainManage::injectMousePress(int _absx, int _absy, TMMouseButton _id, int _width, int _height)
{
	mTerrain->injectMousePress(_absx, _absy, _id, _width, _height);
}
void CTerrainManage::injectMouseRelease(int _absx, int _absy,TMMouseButton _id, int _width, int _height)
{
	mTerrain->injectMouseRelease(_absx, _absy, _id, _width, _height);
}